﻿using FluentNHibernate.Mapping;
using SimpleScrum.Core.Entities;

namespace SimpleScrum.Core.Mappings
{
    public class UserProfileMap : ClassMap<UserProfile>
    {
        public UserProfileMap()
        {
            Table("UserProfile");
            //LazyLoad();
            Id(x => x.UserId).Column("UserId").GeneratedBy.Identity();
            Map(x => x.Email).Column("Email").Unique().Not.Nullable().Length(56);
        }
    }
}